package com.wuliming.gulimall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wuliming.common.utils.PageUtils;
import com.wuliming.gulimall.ware.entity.WareSkuEntity;
import com.wuliming.to.es.WareSkuStock;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author wuliming
 * @email wuliming@gmail.com
 * @date 2023-12-05 14:21:58
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * @param wareId 仓库id
     * @param skuId 商品id
     * @param skuNum 商品数量
     */
    void addStock(Long wareId, Long skuId, Integer skuNum);


    List<WareSkuStock> hasStock(List<Long> skuIds);
}

